<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});

/*******************************这是后台******************/


/*************用户管理模块************/
// Route::get('/admin/index/接收的什么',"Admin\IndexController@应用的什么方法");
Route::get('/admin/index/index',"Admin\IndexController@index");
Route::get('/admin/user/add','Admin\UserController@add');
Route::post('/admin/user/insert','Admin\UserController@insert');
Route::get('/admin/user/index','Admin\UserController@index');
Route::get('/admin/user/edit/{id}/{page}/{num?}/{keyword?}','Admin\UserController@edit');
Route::post('/admin/user/delete','Admin\UserController@delete');
Route::post('/admin/user/update','Admin\UserController@update');
Route::post('/admin/user/ajaxUpdate','Admin\UserController@ajaxUpdate');
Route::post('/admin/user/ajaxUpdate','Admin\UserController@ajaxUpdate');

/**************************商品模块*************************/
Route::get('/admin/cygoods/addmain','Admin\CygoodsController@addmain');

Route::post('/admin/cygoods/insertmain','Admin\CygoodsController@insertmain');

Route::get('/admin/cygoods/adddsgoods','Admin\CygoodsController@adddsgoods');

Route::get('/admin/cygoods/insertadd','Admin\CygoodsController@insertadd');

Route::get('/admin/cygoods/add','Admin\CygoodsController@add');

Route::post('/admin/cygoods/insertdsgoods','Admin\CygoodsController@insertdsgoods');

Route::post('/admin/cygoods/insertgoods','Admin\CygoodsController@insertgoods');

Route::get('/admin/cygoods/index','Admin\CygoodsController@index');

Route::get('/admin/cygoods/edit/{id}','Admin\CygoodsController@edit');

Route::post('/admin/cygoods/update','Admin\CygoodsController@update');

Route::get('/admin/cygoods/delete/{id}','Admin\CygoodsController@delete');
